
package frontend;

import javax.swing.JApplet;
//import java.awt.Graphics;
import javax.swing.*;

public class MainApplet extends JApplet 
{
	private static final long serialVersionUID = 2L;  /** The version of the serialized form of this class. */
	
	private JPanel chatPane;
	private JPanel gamePane;
	private JPanel playersPane;
	private String username = "";

	/*public void paint(Graphics g) 
	{
		g.drawRect(0, 0, getSize().width - 1, getSize().height - 1);
		g.drawString("Hello world, " + username + "!", 5, 15);
	}*/

	// This method is intended for whatever initialization is needed
	// for your applet. It is called after the param attributes of 
	// the applet tag.
	public void init()
	{
		this.setSize(800, 800);
		
		gamePane = new JPanel();
		gamePane.setSize(300, 200);
		
		chatPane = new JPanel();
		chatPane.setSize(200, 100);
		
		playersPane = new JPanel();
		playersPane.setSize(100, 200);
		
		username = getParameter("username");
	}

	// This method is automatically called after init method. It is
	// also called whenever user returns to the page containing the
	// applet after visiting other pages.
	public void start()
	{
	}

	// This method is automatically called whenever the user moves
	// away from the page containing applets. You can use this method
	// to stop an animation.
	public void stop()
	{
	}

	// This method is only called when the browser shuts down normally.
	public void destroy()
	{
	}

}
